package com.zzl.bonds.ticket.constant.type;

/**
 * @author : gull
 * @date : 2022/2/28 15:29
 */
public enum LogTypeEnum {

    /**
     * 1，开立申请 2，转让申请，3，融资申请
     */
    TICKET_OPEN(1, "开立申请"),
    TICKET_TRANSFER(2, "转让申请"),
    TICKET_FINANCING(3, "融资申请"),


    ;


    private Integer code;
    private String value;

    LogTypeEnum(Integer code, String value) {
        this.code = code;
        this.value = value;
    }

    public static String getValue(Integer code) {
        for (LogTypeEnum statusEnum : LogTypeEnum.values()) {
            if (statusEnum.code.equals(code)) {
                return statusEnum.value;
            }
        }
        return "";
    }


    public Integer getCode() {
        return code;
    }

    public String getValue() {
        return value;
    }
}
